package cn.wuyi.item.consumer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

//@FeignClient(value = "COMMON-EUREKA-PRODUCER",fallback = AdminClientImpl.class)
@FeignClient(value = "COMMON-EUREKA-PRODUCER",fallbackFactory  = AdminClientReasonImpl.class)
public interface AdminClient {
    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    String sayHi(@RequestParam(value = "name") String message);
}